<%@page contentType="text/html; charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp" %>
<html>
	<head>
		<title>角色权限授予</title>
	</head>
	<body>
	<ul>
		<li class="titleonly"><imgsrc="${ctxPath}/css/style/base/image/dot.gif" width="15" height="16" class="dot" />&gt;&gt;系统管理员授权
		<a href="javascript:history.back()"><img src="${ctxPath}/css/style/base/image/backtrack.gif" width="14" height="14" align="absmiddle" class="backtrack" />返回</a></li>
	</ul>
	<ul>
	<form action="systemUsers.do">
	<input type="hidden" name="cmd" value="doGrant">
	<input type="hidden" name="systemUserId" value="${systemUser.systemUserId}">
		<div id="sq">
			<span style="margin-left: 25px; color: #09F; font-weight: bold">系统管理员权限授予</span>
			<div id="check_top">
				<div id="title_c">
					<li>权限授予 </li>
				</div>
				<div id="content_c">
					<c:forEach var="role" items="${appRoles}" varStatus="item">
					<c:set value="false" var="check"></c:set>
					<c:forEach var="userRole" items="${systemUser.roles}">
						<c:if test="${userRole.roleId==role.roleId}">
							<c:set value="true" var="check"></c:set>
						</c:if>
					</c:forEach>
					<li class="w30"><input name="roleId" type="checkbox" value="${role.roleId}" <c:if test="${check==true}">checked="checked"</c:if> />${role.roleName}</li>
					<c:if test="${item.count%3==0}">
					<div id="clear"></div>   
					</c:if>
					</c:forEach>
				</div>
			</div>
		</div>
		<div id="button">
			<input type="submit" value="保存"
				style="width: 100px; text-align: center; margin-left: 100px" /> <input
				type="button" value="不保存" onclick="javascript:history.back()"
				style="width: 100px; text-align: center; margin-left: 100px" />
		</div>
	</form>
	</ul>


</body>
</html>